package avicit.rme.back.workflow.condition;
// 流转线上的路由条件,全局流程启动条件示例

/**
import avicit.platform6.api.bpm.eventInterface.CommonRestRouteConditionInterface;
import avicit.platform6.core.rest.msg.ResponseMsg;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/api/demo/bpm/TestRouteCondition")
public class TestRouteCondition implements CommonRestRouteConditionInterface {

    private static final Logger logger = LoggerFactory.getLogger(TestRouteCondition.class);

    @Override
    @PostMapping("/notify/v1")
    public ResponseMsg<Boolean> notify(@RequestBody() Map<String, String> arg) {
        ResponseMsg<Boolean> responseMsg = new ResponseMsg();

        // 默认流程变量开始
        // 流程实例ID
        String processInstanceId = arg.get("processInstanceId");
        // 流程执行ID
        String executionId = arg.get("executionId");
        // 业务表单ID
        String formId = arg.get("formId");
        // 流程定义ID
        String processDefId = arg.get("processDefId");
        // 流程节点标识
        String activityName = arg.get("activityName");
        // 默认流程变量结束
        // todo 业务操作
        return responseMsg;
    }
}
*/